﻿using SelfManagement.Database.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SelfManagement.Database.POCO
{
    [Table("ArticleCategory")]
    public class ArticleCategory : UserBase
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string CategoryName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int? Order { get; set; }

        /// <summary>
        /// 默认分类
        /// </summary>
        public bool IsDefault { get; set; } = false;

    }
}
